package com.dl.study.module.base.resinfo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dl.study.module.base.resinfo.domain.dto.ResInfoListQueryDTO;
import com.dl.study.module.base.resinfo.domain.dto.ResInfoDTO;
import com.dl.study.module.base.resinfo.domain.entity.ResInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * [ 系统资源表 ]
 *
 * @author dl
 * @version 1.0
 * @company xxxx
 * @copyright (c) 2018 xxxxInc. All rights reserved.
 * @date 2021-10-28 16:26:17
 * @since JDK1.8
 */
@Mapper
@Component
public interface ResInfoDao extends BaseMapper<ResInfoEntity> {

    /**
     * 分页查询
     *
     * @param queryDTO
     * @return ResInfoDTO
     */
    List<ResInfoDTO> queryListByCondition(IPage page, @Param("queryDTO") ResInfoListQueryDTO queryDTO);

    /**
     * 根据条件查询列表
     *
     * @param queryDTO
     * @return ResInfoDTO
     */
    List<ResInfoDTO> queryListByCondition(@Param("queryDTO") ResInfoListQueryDTO queryDTO);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIds(@Param("idList") List<Long> idList);

    /**
     * 批量新增
     *
     * @param entityList
     * @return
     */
    void insertBatch(@Param("entityList") List<ResInfoEntity> entityList);
}
